package org.common.utils.rpc.entity;

/**
 * 服务器信息
 * @author zhouzhibing
 * @date 2025/11/16 18:15
 */
public class Host {

    /**
     * 主机
     */
    private final String host;
    /**
     * 端口
     */
    private final int port;

    public Host(String host, int port) {
        this.host = host;
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

    @Override
    public String toString() {
        return "Host{" +
                "host='" + host + '\'' +
                ", port=" + port +
                '}';
    }
}

